package com.bobo.service.impl;

import com.bobo.base.mybatis.ServiceImpl;
import com.bobo.mapper.CategoryMapper;
import com.bobo.pojo.Category;

import com.bobo.service.CategoryService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {

    @Resource
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> listByParentId(Long parentId) {
        return categoryMapper.listByParentId(parentId);
    }
}
